package com.zzz.mylitho;

import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import com.facebook.litho.Component;
import com.facebook.litho.ComponentContext;
import com.facebook.litho.LithoView;
import com.facebook.litho.sections.SectionContext;
import com.facebook.litho.sections.widget.RecyclerCollectionComponent;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.activity_main);
        
        //add view
        final ComponentContext componentContext=new ComponentContext(this);
        final Component component= RecyclerCollectionComponent.create(componentContext).disablePTR(true)
            .section(ListSection.create(new SectionContext(componentContext)).build())
            .build();
        setContentView(LithoView.create(componentContext, component));
    
    }

}
